package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公映许可证信息对象 film_permit_info
 *
 * @author 周志雄
 * @date 2024-03-09
 */
public class FilmPermitInfo {
    private static final long serialVersionUID = 1L;

    /** 唯一标识符 */
    @ApiModelProperty("唯一标识符")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /** 电影的类别 */
    @ApiModelProperty("电影的类别")
    @Excel(name = "电影的类别")
    private String genre;

    /** 编码 */
    @ApiModelProperty("编码")
    @Excel(name = "编码")
    private String code;

    /** 公映号 */
    @ApiModelProperty("公映号")
    @Excel(name = "公映号")
    private String permitNumber;

    /** 片名 */
    @ApiModelProperty("片名")
    @Excel(name = "片名")
    private String title;

    /** 第一出品单位 */
    @ApiModelProperty("第一出品单位")
    @Excel(name = "第一出品单位")
    private String productionUnit;

    /** 公示时间 */
    @ApiModelProperty("公示时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "公示时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date announcementDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGenre(String genre)
    {
        this.genre = genre;
    }

    public String getGenre()
    {
        return genre;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setPermitNumber(String permitNumber)
    {
        this.permitNumber = permitNumber;
    }

    public String getPermitNumber()
    {
        return permitNumber;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setProductionUnit(String productionUnit)
    {
        this.productionUnit = productionUnit;
    }

    public String getProductionUnit()
    {
        return productionUnit;
    }
    public void setAnnouncementDate(Date announcementDate)
    {
        this.announcementDate = announcementDate;
    }

    public Date getAnnouncementDate()
    {
        return announcementDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("genre", getGenre())
            .append("code", getCode())
            .append("permitNumber", getPermitNumber())
            .append("title", getTitle())
            .append("productionUnit", getProductionUnit())
            .append("announcementDate", getAnnouncementDate())
            .toString();
    }
}
